package com.zian.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zian.enums.GoodsSellStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(description = "商品信息DTO")
public class GoodsInfoDTO {

    @ApiModelProperty( "商品表主键id")
    private Long id;

    @ApiModelProperty( "商品名")
    private String goodsName;

    @ApiModelProperty( "商品简介")
    private String goodsIntro;

    @ApiModelProperty( "关联分类id")
    private Long goodsCategoryId;

    @ApiModelProperty( "商品主图")
    private String goodsCoverImg;

    @ApiModelProperty( "商品轮播图 多种json")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> goodsCarousel;

    @ApiModelProperty( "商品详情")
    private String goodsDetailContent;

    @ApiModelProperty( "商品价格")
    private BigDecimal originalPrice;

    @ApiModelProperty( "商品实际售价")
    private BigDecimal sellingPrice;

    @ApiModelProperty( "商品库存数量")
    private Integer stockNum;

    @ApiModelProperty( "商品标签")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tag;

    @ApiModelProperty( "商品上架状态 1-下架 0-上架")
    private GoodsSellStatusEnum goodsSellStatus;


}
